const express = require('express');

const app = express();
// 引入userRouter路由器
const userRouter = require('./router/userRouter');
// 引入goodsRouter路由器
const goodsRouter = require('./router/goodsRouter');
// 使用全局中间件路由器  userRouter  goodsRouter
app.use(userRouter,goodsRouter);
app.listen(8080,()=>{
    console.log('server run at 8080');
})
